package com.taomeishu.mailcrazy.checkers;

import com.taomeishu.mailcrazy.AbstractMailExistChecker;
import com.taomeishu.mailcrazy.checkers.cn21.Cn21ResultParser;
import com.taomeishu.mailcrazy.parser.ResultParser;

public class Cn21MailExistChecker extends AbstractMailExistChecker {

	private String baseUrl = "http://fmail.21cn.com/freeinterface/jsp/reg/checkUserExist.jsp?clientid=userName&userName=";
	
	private Cn21ResultParser cn21ResultParser = new Cn21ResultParser();
	
	@Override
	protected String makeRequestUrl(String username, String domainName) {
		return baseUrl + username +"&_=" + System.currentTimeMillis();
	}

	@Override
	protected ResultParser getResultParser() {
		return cn21ResultParser;
	}

}
